import java.util.Scanner;
public class Book37_2{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.printf("请输入一个两位整数：");
		int a,b;
		a = input.nextInt();
		b = a%10*10+a/10;
		System.out.println("逆序结果为 " + b);
	}
}